const Mock = require('mockjs')

const data = Mock.mock({
  'items|30': [{
    //序号
    'id|+1': 1,
    //随机数字
    'cxxh|1000-10000': 1000,
    //随机带下划线字符串
    'flbh': 'J786-36-254347-01',
    //附录状态 0-3随机数
    'fl_status|0-7': 0,
    //同步状态
    'fl_tbzt|0-1': 0,
    //文件上传时间
    'fl_upload_time': '@datetime',

  }]
})

module.exports = [{
  url: '/vue-admin-template/table/cxqdlist',
  type: 'get',
  response: config => {
    const items = data.items
    return {
      code: 20000,
      data: {
        total: items.length,
        data: items
      }
    }
  }
}, ]
